from scrapy import cmdline
def exec_blockinfo_spider(start_block, end_block):
    str = "scrapy37 crawl blockinfo -a start_block={start_block} -a end_block={end_block}".format(start_block=start_block,end_block=end_block).split()
    print(str)
    cmdline.execute(str)
